package com.Cychat.commons.entity.pojo;


import java.math.BigDecimal;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

@Data
@TableName("orders")
public class Orders {
    @Schema(description="订单编号")
    @TableId("order_id")
    private String orderId;
    @Schema(description="用户ID")
    private Long userId;
    @Schema(description="商家ID")
    private Integer merchantId;
    @Schema(description="订单总金额")
    private BigDecimal totalAmount;
    @Schema(description="运费")
    private BigDecimal freight;
    @Schema(description="支付时间")
    private Date payTime;
    @Schema(description="收货人姓名")
    private String receiveName;
    @Schema(description="收货人手机号")
    private String receivePhone;
    @Schema(description="收货地址")
    private String receiveAddress;
    @Schema(description="订单状态，0为待付款，1为待收货，2为待评价，3为退款/售后")
    private Integer orderStatus;
    @Schema(description="退款原因")
    private String refundReason;
    @Schema(description="创建时间")
    private Date createTime;
    @Schema(description="修改时间")
    private Date updateTime;
}